package com.macro.mall.product.service;


import com.macro.mall.product.dto.QueryStockDoorDto;
import com.macro.mall.product.dto.ReturnServiceStockDto;

public interface PmProdStockService {
    ReturnServiceStockDto getServerStock(Long prodId, Long skuInstId, Integer siteId);

    boolean addStock(Long stockId,Float changeStock) throws Exception;

//    boolean deductStock(Long stockId,Float changeStock,String orderId) throws Exception;
//
//    boolean rollbackStock(Long prodId, Long skuInstId, Integer siteId,String stockDate,String stockTime,Float changeStock,String orderId) throws Exception;
//    boolean rollbackStockSimplify(String orderId) throws Exception;

    ReturnServiceStockDto getServerStockByDoor(QueryStockDoorDto queryDto);
}
